﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using GH.BLL;

namespace GH.Web.Welfare
{
    public partial class OrganizationSumirise : BasePage.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.lblUnionName.Visible = false;
                hddSumarry.Value = "0";
                this.Session["UnionSelect"] = this.Session["Union"].ToString();
                this.hddUionId.Value = this.Session["Union"].ToString();
                GH.BLL.Union bllUnion = new Union();
                GH.Model.工会单位信息 modUnion = bllUnion.GetModel(int.Parse(this.Session["UnionSelect"].ToString()));
                this.lblUnionName.Text = modUnion.单位名称;
                //报表汇总
                if (GetRight(301))
                {
                    hddRights.Value = "1";

                }
                else
                {
                    hddRights.Value = "0";
                }
                //报表查看
                if (GetRight(302))
                {
                    hddOpen.Value = "1";

                }
                else
                {
                    hddOpen.Value = "0";
                }
            }
            else
            {
                GH.BLL.Union bllUnion = new Union();
                GH.Model.工会单位信息 modUnion = bllUnion.GetModel(int.Parse(this.Session["UnionSelect"].ToString()));
                this.lblUnionName.Text = modUnion.单位名称;
                this.hddUionId.Value = this.Session["UnionSelect"].ToString();
             
            }
        }

    }
}
